package cn.kgc.faqmanager.controller;

import cn.kgc.faqmanager.entity.ResultEntity;
import cn.kgc.faqmanager.pojo.Classes;
import cn.kgc.faqmanager.service.ClassesService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 * @create 郭祥伟
 */
@RestController
public class ClassesController {
    @Resource
    ClassesService classesService;
    @RequestMapping("/getClassesList")
    public ResultEntity<List<Classes>> getClassesList(){
        List<Classes> classesList=classesService.selectAll();
        return ResultEntity.successWithoutData(classesList);
    }
}
